package com.itheima.comment.vo;

import com.itheima.comment.document.Reply;
import lombok.Data;
import org.springframework.beans.BeanUtils;

@Data
public class ReplyVo extends Reply {

    //标记给前端显示 是否点赞
    private Integer operation;

    public static ReplyVo build(Reply reply){
        ReplyVo replyVo = new ReplyVo();
        BeanUtils.copyProperties(reply,replyVo);
        return replyVo;
    }
}
